/*
 * LogisticsHeaderListItem.java
 * business
 *
 * Created by SunDing on 2016/12/5.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.widget.listview.displaylistitem;

import android.content.Context;

import com.yidiandao.business.R;
import com.yidiandao.business.data.response.LogisticsResponse;
import com.yidiandao.business.ui.widget.listview.DisplayListItem;
import com.yidiandao.business.ui.widget.listview.viewholder.LogisticsHeaderHolder;
import com.yidiandao.business.utils.UIUtils;

/** 物流信息 头部支付方式 */
public class LogisticsHeaderListItem
        extends DisplayListItem<LogisticsHeaderHolder, LogisticsResponse.DataBean> {

    public LogisticsHeaderListItem(LogisticsResponse.DataBean s) {
        super(s);
    }

    @Override
    public void onShow(Context context, LogisticsHeaderHolder holder) {
        holder.mTvPay.setText(UIUtils.getString(R.string.order_detail_info_pay, data.getPayName()));
        holder.mTvOrderSn.setText(
                UIUtils.getString(R.string.order_detail_info_num, data.getOrderSn()));
    }

    @Override
    public String getDisplayItemTag() {
        return LogisticsHeaderListItem.class.getSimpleName();
    }

    @Override
    public Class<LogisticsHeaderHolder> getViewHolderClazz() {
        return LogisticsHeaderHolder.class;
    }
}
